import request from '@/utils/request'

// 查询资产入库列表
export function listAssetsin(query) {
  return request({
    url: '/assetsin/assetsin/list',
    method: 'get',
    params: query
  })
}

// 查询资产入库详细
export function getAssetsin(id) {
  return request({
    url: '/assetsin/assetsin/' + id,
    method: 'get'
  })
}

// 新增资产入库
export function addAssetsin(data) {
  return request({
    url: '/assetsin/assetsin',
    method: 'post',
    data: data
  })
}

// 修改资产入库
export function updateAssetsin(data) {
  return request({
    url: '/assetsin/assetsin',
    method: 'put',
    data: data
  })
}

// 删除资产入库
export function delAssetsin(id) {
  return request({
    url: '/assetsin/assetsin/' + id,
    method: 'delete'
  })
}
